/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */

public class Main {
    public static void swap(MyValue m1, MyValue m2){
      int tmp = m1.val;
      m1.val = m2.val;
      m2.val = tmp;
    }
    public static void main(String[] args) {
        Shape[] shapes = {new Flower(), new Circle(), new triangle(), new Flower()};
        for(Shape x :  shapes){
            x.draw();
        }
    }
}